package com.luoran.car.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.luoran.car.domain.Syscustomer;
import com.luoran.car.service.SyscustomerService;


public class CellDataDemoHeadDataListenerCustomer implements ReadListener<Syscustomer> {

    private SyscustomerService syscustomerService;

    public CellDataDemoHeadDataListenerCustomer(SyscustomerService syscustomerService) {
        this.syscustomerService = syscustomerService;
    }


    @Override
    public void invoke(Syscustomer syscustomer, AnalysisContext analysisContext) {
        syscustomerService.add(syscustomer);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("解析之后的方法");
    }
}
